// 将axios副本导入
import _axios from "@/utils/request.js";

// 获取 频道分类列表 的api接口
export const channels = () => {
  return _axios({
    url: "/v1_0/channels",
    type: "get",
  });
};

// 获取 头条详情列表的 api接口
export const articles = (id) => {
  return _axios({
    url: `/v1_0/articles?channel_id=${id}&timestamp=${Date.now()}`,
  });
};
